import {THEME_CURRENT} from "@/common/config/config.js"
const store = {
	namespaced:true,
	state:{
		theme:''
	},
	getters: {
		themeType(state){
			return state.theme
		}
	},
	mutations: {
		SET_THEME(state,type){
			state.theme = type;
			// 持久化到本地
			uni.setStorageSync(THEME_CURRENT,type)
		}
	},
	actions: {
		
	}
}

export default store